package cn.ligoo.dtu.web.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class DefaultController {

	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String index() {
		return "redirect:/login";
	}

	@RequestMapping(value = "/platform/{page}", method = RequestMethod.GET)
	public String gotoView(@PathVariable String page) {
		return "/platform/" + page;
	}
}
